class playGame extends eui.Component implements  eui.UIComponent {
	public constructor() {
		super();
		this.skinName = "playGameSkin";
	}

	protected partAdded(partName:string,instance:any):void
	{
		super.partAdded(partName,instance);
	}
	private webBgColor:egret.Sprite;//最大容器
	private playGames_bg;//背景动画组
	// private 
	protected childrenCreated():void
	{
		let webBgColor = new egret.Shape();
		webBgColor.graphics.beginFill(0xFFBC3B);
		webBgColor.graphics.drawRect(0,0,this.stage.stageWidth,this.stage.stageHeight);
		webBgColor.graphics.endFill();
		this.webBgColor.addChild(webBgColor);
		super.childrenCreated(); 
		// this.playAnimation(this.playGames_bg,true); 

	}
	//设置循环播放
	private playAnimation(target: egret.tween.TweenGroup, isLoop: boolean): void {
		if (isLoop) {
			for (var key in target.items) {
				target.items[key].props = { loop: true};
			}
		} 
		target.play();
	}
	
}